﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EntityModel;

namespace Services
{
    public class SuperUserService
    {
        #region***属性数据***

        ShopDbEntities bdContext = DbContextHelper.GetCurrentDbContext();

        #endregion
        public int Create(SuperUser model)
        {
            bdContext.SuperUsers.AddObject(model);
            bdContext.SaveChanges();
            return model.Id;
        }
        public IQueryable<SuperUser> GetAllList()
        {
            return bdContext.SuperUsers.OrderByDescending(p => p.Id);

        }
    }
}
